- name: Install dependencies
run: ./ci/installdeps.sh
- - name: Build API docs
+ - name: Build API docs and manpages
run: |
- ./autogen.sh --enable-gtk-doc
+ ./autogen.sh --enable-gtk-doc --enable-man --enable-man-html
make -C apidoc
+ make manhtml
- name: Build and publish jekyll docs
uses: helaili/jekyll-action@v2
- prep-docs.sh
- vendor/
-# This is a copy of the apidoc/html directory. Run prep-docs.sh before
-# jekyll to put it in place.
-include: [reference]
+# These are copies of the apidoc/html and man/html directories. Run
+# prep-docs.sh before jekyll to put it in place.
+include: [reference, man]
remote_theme: coreos/just-the-docs
plugins:
The libostree API documentation is available in [Reference](reference/).
+## Manual Pages
+
+The ostree manual pages are available in [Manual](man/).
+
## Contributing
See [Contributing]({{ site.baseurl }}{% link CONTRIBUTING.md %}).
echo "Copying $apidocs to $refdir"
rm -rf "$refdir"
cp -r "$apidocs" "$refdir"
+
+# Make sure the manpages have been generated and copy them to the man
+# directory.
+manhtml="$topdir/man/html"
+mandir="$docsdir/man"
+if [ ! -d "$manhtml" ]; then
+ echo "error: HTML manpages $manhtml have not been generated" >&2
+ echo "Rebuild with --enable-man option and run `make manhtml`" >&2
+ exit 1
+fi
+
+echo "Copying $manhtml to $mandir"
+rm -rf "$mandir"
+cp -r "$manhtml" "$mandir"